package com.yeyaomai.dksns.flowis.service.result;

public class Test {

	public static void main(String[] args) {
		String aa = getDomain("http://www.adsfsdf.com");
		if(aa=="")
		System.out.println("aa");
	}
	/*
	 * 获取搜索引擎的中文名称
	 */
	public static String getDomain(String url) {
		String engine ="";
		if (url.indexOf("baidu") != -1) {
            engine = "百度";
		}
		if (url.indexOf("google") != -1) {
            engine = "谷歌";
		}
		if (url.indexOf("bing") != -1) {
            engine = "微软必应";
		}
		if (url.indexOf("yahoo") != -1) {
            engine = "雅虎";
		}
		if (url.indexOf("sogou") != -1) {
            engine = "搜狗";
		}
		if (url.indexOf("soso") != -1) {
            engine = "腾讯soso";
		}
		
		return engine;
	}
}
